<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <title>Satellite Control Center - Astrium - Checklist Details</title>

  <link rel="stylesheet" href="https://d10ajoocuyu32n.cloudfront.net/mobile/1.3.1/jquery.mobile-1.3.1.min.css">

  <!-- jQuery and jQuery Mobile -->
  <script src="https://d10ajoocuyu32n.cloudfront.net/jquery-1.9.1.min.js"></script>
  <script src="https://d10ajoocuyu32n.cloudfront.net/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>

  <!-- Extra Codiqa features -->
  <script src="https://d10ajoocuyu32n.cloudfront.net/codiqa.ext.js"></script>
  <!-- My functions -->
  <script type="text/javascript" src="/AMRA-SCC/MobilityAccess/WebContent/WEB-INF/addTemplate.js "></script>
  <script src="logic.js"></script>

</head>
<body>
  <!-- Home -->
  <div data-role="page" id="GoNoGo">
  	<div id="panel-wrapper">			
	</div>
	<div id="page-wrapper">
	    <div data-theme="a" data-role="header" id="header">
	    </div>
	    <div id="content-wrapper">
	    <div data-role="content">
		  <a data-role="button" data-inline="true" href="index.html" data-icon="back" data-iconpos="left" rel="external">Return</a>
	      <h1 id="Title" style="text-align:center">
	      </h1>
	      <h2 id="Sequence">
	      </h2>
	      <h2 id="Date">
	      </h2>
	      <h2 id="Name">
	      </h2>
	      <ul data-role="listview" data-divider-theme="b" data-inset="true" id="list">
	
	      </ul>
	    </div>
	    <input name="" id="filename" placeholder="File name" value="" type="text">
	    <input type="submit" value="Save">
		<a data-role="button" data-inline="true" href="index.html" data-icon="back" data-iconpos="left" rel="external">Return</a>
		<div data-theme="a" data-role="footer" id="footer" data-position="fixed">
	  	</div>
	</div>
	</div>
  </div>
</body>
</html>

<script>
	var params=new Object();
	var tmp=window.location.search.substr(1).split("&");
	for (i=0; i<tmp.length; i++)
	{
		data=tmp[i].split("=");
		params[data[0]]=data[1];		
	}
	var filename = params['fileName'].replace(new RegExp("%20", "g")," ");
	xmlDoc=loadXMLDoc("/Server/Tasks/"+ filename + ".xml");
	displayXMLDoc(xmlDoc);
	$('input[type="submit"]').click(function() {
	  saveXMLFile()
	});
</script>
